package com.u3k.mid;

import android.content.Context;
import android.text.TextUtils;
import com.u3k.app.mid.utils.net.Callback;
import com.u3k.app.mid.utils.net.Response;

final class az implements Callback {
    final /* synthetic */ Context a;
    final /* synthetic */ String b;

    az(Context context, String str) {
        this.a = context;
        this.b = str;
    }

    public void onFailure(int i, String str) {
        LogUtils.a("PingUtils", "changeDomain.onFailure==" + str);
    }

    public void onResponse(Response response) {
        CharSequence string = response.getString();
        LogUtils.a("PingUtils", "changeDomain.onResponse.getString==" + string);
        if (!TextUtils.isEmpty(string) && TextUtils.equals("ok", string)) {
            bb.a(this.a, "domain", this.b);
            bb.a(this.a, "domain_fail", Integer.valueOf(0));
        }
    }
}
